package com.springboot.project.controller;

import com.springboot.project.service.IMailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author liupenghui
 * @date 2018/7/10
 * @desc：
 */
@RestController
public class MailController {
    @Autowired
    private IMailService mailService;

    @RequestMapping("/mail")
    public String index() {
        mailService.sendSimpleMail("lph@haochedai.com","test simple mail"," hello this is simple mail");
        return "hello";
    }
}
